import Vue from 'vue'
import Router from 'vue-router'
import register from './pages/register/index.vue'
import login from './pages/login/index.vue'
import songlist from "./pages/songlist/index.vue"
import songlistdetail from "./pages/songlistdetail/index.vue"
// import play from "./pages/play/index.vue"

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/',
            component: login
        },
        {
            path: '/songlist',
            component: songlist
        },
        {
            path: '/songlistdetail',
            component: songlistdetail
        },
        // {
        //     path: '/playsong/:id',
        //     component: play
        // },
    ]
})